package entity.salary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("sa_achievements")
public class Achievements implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "hes_id", type = IdType.AUTO)
    private Integer hesId;

    /**
     * 关联人员核算表
     */
    @TableField("hs_id")
    private Integer hsId;

    /**
     * 月计薪时长
     */
    @TableField("monthlypay_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date monthlypayTime;

    /**
     * 基本工资
     */
    @TableField("base_pay")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date basePay;

    /**
     * 岗位工资
     */
    @TableField("post_wage")
    private Double postWage;

    /**
     * 职务工资
     */
    @TableField("job_salary")
    private Double jobSalary;

    /**
     * 职称工资
     */
    @TableField("professional_salary")
    private Double professionalSalary;

    /**
     * 技能工资
     */
    @TableField("based_pay")
    private Double basedPay;

    /**
     * 学历工资
     */
    @TableField("education_wage")
    private Double educationWage;

    /**
     * 交通补贴
     */
    @TableField("traffic_allowance")
    private Double trafficAllowance;

    /**
     * 住房补贴
     */
    @TableField("housing_add")
    private Double housingAdd;

    /**
     * 餐补
     */
    @TableField("meal_subsidy")
    private Double mealSubsidy;

    /**
     * 节假日补贴
     */
    @TableField("holiday_allowance")
    private Double holidayAllowance;

    /**
     * 供暖补贴
     */
    @TableField("heating_subsidy")
    private Double heatingSubsidy;

    /**
     * 高温补贴
     */
    @TableField("temperature_subsidy")
    private Double temperatureSubsidy;

    /**
     * 工资津贴
     */
    @TableField("wage_allowance")
    private Double wageAllowance;

    /**
     * 职务津贴
     */
    @TableField("wage_attached")
    private Double wageAttached;

    /**
     * 通讯补贴
     */
    @TableField("phone_allowance")
    private Double phoneAllowance;

    /**
     * 绩效工资
     */
    @TableField("merit_pay")
    private Double meritPay;

    /**
     * 全勤奖
     */
    @TableField("attendance_bonus")
    private Double attendanceBonus;

    /**
     * 年终奖
     */
    @TableField("yearend_bonus")
    private Double yearendBonus;

    /**
     * 提成工资
     */
    @TableField("deduction_wage")
    private Double deductionWage;

    /**
     * 工资年龄
     */
    @TableField("wage_age")
    private Integer wageAge;

    /**
     * 备注
     */
    @TableField("back")
    private String back;

    /**
     * 创建时间
     */
    @TableField("create_tiem")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTiem;

    /**
     * 修改时间
     */
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标志
     */
    @TableField("delete_flag")
    private Integer deleteFlag;


}
